﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CameraManager : MonoBehaviour {

    public GameObject mainCamera;
    public GameObject couteCamera;

    public bool IsShowMain
    {
        set
        {
            ShowMainMap(value);
        }
    }

    public int TileVisibuffer
    {
        set
        {
            Visibuffer(value);
        }
    }

    private void Start()
    {
        ShowMainMap(true);
    }

    private void ShowMainMap(bool isShow)
    {
        mainCamera.gameObject.SetActive(isShow);
        couteCamera.gameObject.SetActive(!isShow);
    }

    private void Visibuffer(int num)
    {
        if(num == 0)
        {
            couteCamera.transform.localPosition = new Vector3(0, 102, -180);
        }
        else
        {
            couteCamera.transform.localPosition = new Vector3(0, 275, -444);
        }
    }
}
